{include file="public/head"}

<body>
<div id="wrapper">
    {include file="public/menu"}

    <div id="page-wrapper" class="gray-bg dashbard-1">
        {include file="public/nav"}
        <div class="row wrapper border-bottom white-bg page-heading">
            <div class="col-lg-10">
                <h2>反馈信息</h2>
                <ol class="breadcrumb">
                    <li>
                        <a href="{:url('Index/index')}">主页</a>
                    </li>
                    <li>
                        <a>反馈</a>
                    </li>
                    <li>
                        <strong>反馈列表</strong>
                    </li>
                </ol>
            </div>
            <div class="col-lg-2">

            </div>
        </div>
        <div class="wrapper wrapper-content animated fadeInRight">
            <div class="row">
                <div class="col-lg-12">
                    <div class="ibox float-e-margins">
                        <div class="ibox-title">
                            <h5>反馈信息列表</h5>
                            <div class="ibox-tools">
                                <small>共 {$Count} 条</small>
                            </div>
                        </div>

                        <div class="ibox-content">
                            <div class="table-responsive">
                                <table class="table table-hover">
                                    <thead>
                                    <tr>
                                        <th>#</th>
                                        <th>提交账号</th>
                                        <th>提交时间</th>
                                        <th>当前状态</th>
                                        <th>添加时间</th>
                                        <th>公告操作</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    {volist name="FeedbackList" id="v"}
                                    <tr>
                                        <td>{$key+1}</td>
                                        <td>{$v.username}</td>
                                        <td>{$v.add_time|date="Y-m-d H:i:s",###}</td>
                                        <td>
                                            {if condition="$v.status eq 0"}未回复
                                            {elseif condition="$v.status eq 1"}已回复
                                            {/if}
                                        </td>
                                        <td>{$v.add_time|date="Y-m-d H:i:s",###}</td>
                                        <td>
                                            <a title="反馈详情" href="javascript:;" class="btn btn-xs btn-primary" onclick="notice_edit('反馈详情','{:url("Feedback/FeedbackEdit",["id"=>$v["id"]])}','1000','650')">查看详情</a>
                                        </td>
                                    </tr>
                                    {/volist}
                                    </tbody>
                                </table>
                            </div>
                            <div class="row" style="text-align: center">
                                {$Page}
                            </div>
                        </div>
                    </div>
                </div>

            </div>
        </div>
        {include file="public/foot"}

    </div>
</div>
</div>
{include file="public/footer"}
<script>
    /*公告-增加*/
    function notice_add(title,url,w,h){
        layer_show(title,url,w,h);
    }

    /*公告-编辑*/
    function notice_edit(title,url,w,h){
        layer_show(title,url,w,h);
    }

    /*等级-删除*/
    function notice_del(obj,id){
        layer.confirm('确认要删除吗？',function(index){
            $.ajax({
                type:"post",
                url:"{:url('Notice/NoticeDelete')}",
                data:{
                    id:id,
                },
                dataType:"json",
                success:function(data){
                    if(data.status == 1){
                        layer.msg(data.message,{icon: 6,time:1500},function () {
                            window.location.reload();
                        });
                    }else{
                        layer.msg(data.message,{icon: 5,time:1500});
                    }
                }
            });
        });
    }
</script>
</body>
</html>
